m,n=map(int,input().split())
s=0
for i in range(m,n+1):
    s+=i*i+1/i
# print("sum = %.6f"%s)
print("sum = {:.6f}".format(s))